package generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName t_holiday
 */
@TableName(value ="t_holiday")
public class Holiday implements Serializable {
    /**
     * 主键，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer holidayId;

    /**
     * 请加编号，可以自动生成
     */
    private String holidayNo;

    /**
     * 申请人id
     */
    private Integer holidayUserId;

    /**
     * 请假事项
     */
    private String holidayType;

    /**
     * 请假事由
     */
    private String holidayBz;

    /**
     * 请假开始时间
     */
    private String holidayStartTime;

    /**
     * 请假结束时间
     */
    private String holidayEndTime;

    /**
     * 请假状态 1-草稿 2-提交
     */
    private String holidayStatus;

    /**
     * 创建时间
     */
    private String holidayCreateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    public Integer getHolidayId() {
        return holidayId;
    }

    /**
     * 主键，自增
     */
    public void setHolidayId(Integer holidayId) {
        this.holidayId = holidayId;
    }

    /**
     * 请加编号，可以自动生成
     */
    public String getHolidayNo() {
        return holidayNo;
    }

    /**
     * 请加编号，可以自动生成
     */
    public void setHolidayNo(String holidayNo) {
        this.holidayNo = holidayNo;
    }

    /**
     * 申请人id
     */
    public Integer getHolidayUserId() {
        return holidayUserId;
    }

    /**
     * 申请人id
     */
    public void setHolidayUserId(Integer holidayUserId) {
        this.holidayUserId = holidayUserId;
    }

    /**
     * 请假事项
     */
    public String getHolidayType() {
        return holidayType;
    }

    /**
     * 请假事项
     */
    public void setHolidayType(String holidayType) {
        this.holidayType = holidayType;
    }

    /**
     * 请假事由
     */
    public String getHolidayBz() {
        return holidayBz;
    }

    /**
     * 请假事由
     */
    public void setHolidayBz(String holidayBz) {
        this.holidayBz = holidayBz;
    }

    /**
     * 请假开始时间
     */
    public String getHolidayStartTime() {
        return holidayStartTime;
    }

    /**
     * 请假开始时间
     */
    public void setHolidayStartTime(String holidayStartTime) {
        this.holidayStartTime = holidayStartTime;
    }

    /**
     * 请假结束时间
     */
    public String getHolidayEndTime() {
        return holidayEndTime;
    }

    /**
     * 请假结束时间
     */
    public void setHolidayEndTime(String holidayEndTime) {
        this.holidayEndTime = holidayEndTime;
    }

    /**
     * 请假状态 1-草稿 2-提交
     */
    public String getHolidayStatus() {
        return holidayStatus;
    }

    /**
     * 请假状态 1-草稿 2-提交
     */
    public void setHolidayStatus(String holidayStatus) {
        this.holidayStatus = holidayStatus;
    }

    /**
     * 创建时间
     */
    public String getHolidayCreateTime() {
        return holidayCreateTime;
    }

    /**
     * 创建时间
     */
    public void setHolidayCreateTime(String holidayCreateTime) {
        this.holidayCreateTime = holidayCreateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Holiday other = (Holiday) that;
        return (this.getHolidayId() == null ? other.getHolidayId() == null : this.getHolidayId().equals(other.getHolidayId()))
            && (this.getHolidayNo() == null ? other.getHolidayNo() == null : this.getHolidayNo().equals(other.getHolidayNo()))
            && (this.getHolidayUserId() == null ? other.getHolidayUserId() == null : this.getHolidayUserId().equals(other.getHolidayUserId()))
            && (this.getHolidayType() == null ? other.getHolidayType() == null : this.getHolidayType().equals(other.getHolidayType()))
            && (this.getHolidayBz() == null ? other.getHolidayBz() == null : this.getHolidayBz().equals(other.getHolidayBz()))
            && (this.getHolidayStartTime() == null ? other.getHolidayStartTime() == null : this.getHolidayStartTime().equals(other.getHolidayStartTime()))
            && (this.getHolidayEndTime() == null ? other.getHolidayEndTime() == null : this.getHolidayEndTime().equals(other.getHolidayEndTime()))
            && (this.getHolidayStatus() == null ? other.getHolidayStatus() == null : this.getHolidayStatus().equals(other.getHolidayStatus()))
            && (this.getHolidayCreateTime() == null ? other.getHolidayCreateTime() == null : this.getHolidayCreateTime().equals(other.getHolidayCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHolidayId() == null) ? 0 : getHolidayId().hashCode());
        result = prime * result + ((getHolidayNo() == null) ? 0 : getHolidayNo().hashCode());
        result = prime * result + ((getHolidayUserId() == null) ? 0 : getHolidayUserId().hashCode());
        result = prime * result + ((getHolidayType() == null) ? 0 : getHolidayType().hashCode());
        result = prime * result + ((getHolidayBz() == null) ? 0 : getHolidayBz().hashCode());
        result = prime * result + ((getHolidayStartTime() == null) ? 0 : getHolidayStartTime().hashCode());
        result = prime * result + ((getHolidayEndTime() == null) ? 0 : getHolidayEndTime().hashCode());
        result = prime * result + ((getHolidayStatus() == null) ? 0 : getHolidayStatus().hashCode());
        result = prime * result + ((getHolidayCreateTime() == null) ? 0 : getHolidayCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", holidayId=").append(holidayId);
        sb.append(", holidayNo=").append(holidayNo);
        sb.append(", holidayUserId=").append(holidayUserId);
        sb.append(", holidayType=").append(holidayType);
        sb.append(", holidayBz=").append(holidayBz);
        sb.append(", holidayStartTime=").append(holidayStartTime);
        sb.append(", holidayEndTime=").append(holidayEndTime);
        sb.append(", holidayStatus=").append(holidayStatus);
        sb.append(", holidayCreateTime=").append(holidayCreateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}